package com.test.demo2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class MainController {


    @GetMapping("/")
    public String index() {
        return "ok - /";
    }
    @GetMapping("/index")
    public String index1() {
        return "ok - index";
    }
    @GetMapping("/test1")
    public String test1() {
        return "ok - test1";
    }
    @GetMapping("/test2")
    public String test2() {
        return "ok - test2";
    }
    @GetMapping("/test3")
    public String test3() {
        return "ok - test3";
    }
}
